package controllers;

import models.entities.OrderEntity;
import models.entities.UserEntity;
import models.exceptions.GetEntityException;
import models.repository.OrderRepositorySQL;
import models.repository.common.OrderRepository;
import play.mvc.Controller;

import java.io.IOException;

//Test mail layouts here
public class Mails extends Controller {
    public static void confirmOrder(int orderId) throws GetEntityException, IOException {
        OrderRepository repository = new OrderRepositorySQL();
        OrderEntity order = repository.getOrder(orderId);
        render(order);
    }

    public static void confirmOrderForAdmin(int orderId) throws GetEntityException, IOException {
        OrderRepository repository = new OrderRepositorySQL();
        OrderEntity order = repository.getOrder(orderId);
        render(order);
    }

    public static void sendPassword(UserEntity authenticatedUser) {
        //To change body of created methods use File | Settings | File Templates.
    }
}
